#include<iostream>
using namespace std;
typedef long long LL;
const int N = 1e6 + 10;
int n;
int main()
{
	int t;
	cin >> t;
	while (t--) {
		cin >> n;
		cout << (n + 1) / 2 << endl;
	}
	return 0;
}